SetTrackEnabled
TheSetTrackEnabled
function allows your application to enable and disable a track. The Movie Toolbox services only enabled tracks.
pascal void SetTrackEnabled (Track theTrack, Boolean isEnabled);
theTrack
- Specifies the track for this operation. Your application obtains this track identifier from such Movie Toolbox functions as
NewMovieTrack
andGetMovieTrack
(described on page 2-136 and page 2-188, respectively).isEnabled
- Enables or disables the track. Set this parameter to
true
to enable the track. Set this parameter tofalse
to disable the track.SPECIAL CONSIDERATIONS
When you disable a track, the Movie Toolbox may release system resources that are used by the track, including allocated memory.ERROR CODES
invalidTrack -2009 This track is corrupted or invalid SEE ALSO
You can determine whether a track is enabled by calling theGetTrackEnabled
function, which is described in the next section.